#define _CRT_SECURE_NO_WARNINGS 1
#include"List.h"
void TestList1()
{
	ListNode* plist = InitList();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPrint(plist);

	ListPushFront(plist, 1);
	ListPushFront(plist, 2);
	ListPushFront(plist, 3);
	ListPushFront(plist, 4);
	ListPrint(plist);

	ListPopBack(plist);
	ListPrint(plist);

	ListPopFront(plist);
	ListPrint(plist);

	ListNode* pos = ListFind(plist, 1);
	ListInert(pos, 10);
	ListPrint(plist);

	ListErase(pos);
	ListPrint(plist);

	ListSize(plist);

	ListDestory(plist);
	plist = NULL;
}
int main()
{
	TestList1();
	return 0;
}